def d(*para):
	print para

	all = (1, 3, 5, 7)

	r = list(set(para).intersection(set(all)))

	print(r)
	print(len(r))

d(21)


a1 = [[1,[]],[12,[2,3,4,5]],[13,[6,7]],[14,[8,9,10,11]],[15,[16]]]

rs = list()

def list_r(data):
	for item in data:
		print(type(item))
		if isinstance(item, list):
			if item:
				list_r(item)
		else:
			rs.append(item)

list_r(a1)
print(rs)